package com.zxf.appliction.service;

import java.util.List;
import java.util.Map;


import org.springframework.transaction.annotation.Transactional;

import com.zxf.appliction.domain.Messages;
import com.zxf.appliction.domain.Users;




//默认将类中的所有函数纳入事务管理.  
@Transactional  
public interface UserService {
	
	 
	  
	  
	  
	 public void insertUser(Users user,Map<String,Object> param);

	public Users getId(int userid);

	public List getUserList();

	public Map<String, Object> getUserList2();

	public List getUserList3(int pagenum, int numbers);

	public int getusertotle();

	public Users selectusers(Users users);

	//添加用户到redis
	public boolean add(Users users);

	//删除用户到redis
	public void delete(int parseInt);
	public void saveUser(final Users user);
//从redis读取用户

	Users getuser(String keyId);


	//从redis读取用户
	Users getUsers(String key);

	void add2(Users user);

	//添加消息到redis
	public void saveMessage(Messages message);
	//从redis读取消息
	public Messages getmessage(String lowerCase);
	

	public List getRedisUserList(int start2, int pageSize2);

	List getRedisMessagesList(int start2, int pageSize2);



	public int getRedisusertotle();

	public int getRedistotle(String string);
    
	//更新用户
	public void updateUser(Users user);

	//删除用户
	public void deleUser(int ids);

	
}
